// GYWalkAids.h : main header file for the GYWALKAIDS application
//

#if !defined(AFX_GYWALKAIDS_H__0B9E1383_DD30_4629_8E3A_6C91F8CE6EC6__INCLUDED_)
#define AFX_GYWALKAIDS_H__0B9E1383_DD30_4629_8E3A_6C91F8CE6EC6__INCLUDED_

#include "../Bluetooth/CWAManager.h"


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "../res/resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CGYWalkAidsApp:
// See GYWalkAids.cpp for the implementation of this class
//

class CNavigateDlg;
class CCustomMsgCenter;
class CGYWalkAidsApp : public CWinApp
{
public:
	CGYWalkAidsApp();

	CString				GetCurMRN(){return m_strCurrentMRN;}
	void				SetCurMRN(CString strMRN){m_strCurrentMRN = strMRN;}

	DWORD				GetCurSN(){return m_dwSerialNo;}
	void				SetCurSN(DWORD dwSN){m_dwSerialNo = dwSN;}

	int					GetCurrentWAIndex(){return m_nCurrentWAIndex;}
	void				SetCurrentWAIndex(int nWAIndex){m_nCurrentWAIndex = nWAIndex;}

	DWORD				GetUserRoleID(){return m_dwUserRoleID;}
	CString				GetUserName(){return m_strUserName;}
	CString				GetUserRealName(){return m_strUserRealName;}
	CString				GetSoftwareSN(){return m_strSoftwareSN;}

	CNavigateDlg*		GetFrameDlg(){return m_pFrameDlg;}
	CWAManager*			GetWAMan(){return &m_BlueWAMan;}
	CCustomMsgCenter*	GetCustMsgCenter(){return m_pCustMsgCenter;}

	HWND				GetGaitWindow(){return m_hGaitWnd;}
	void				SetGaitWindow(HWND hGaitWnd){m_hGaitWnd = hGaitWnd;}

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGYWalkAidsApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CGYWalkAidsApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

		
private:
		CWAManager			m_BlueWAMan;
		CString				m_strCurrentMRN;
		DWORD				m_dwSerialNo;
		int					m_nCurrentWAIndex;
		CNavigateDlg*		m_pFrameDlg;
		CCustomMsgCenter*	m_pCustMsgCenter;
		DWORD				m_dwUserRoleID;
		CString				m_strUserName;
		CString				m_strUserRealName;
		CString				m_strSoftwareSN;

		HWND				m_hGaitWnd;
};

extern CGYWalkAidsApp theApp;
inline CGYWalkAidsApp* GetApp() {return &theApp;}
inline CNavigateDlg* GetFrame() {return theApp.GetFrameDlg();}
/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GYWALKAIDS_H__0B9E1383_DD30_4629_8E3A_6C91F8CE6EC6__INCLUDED_)
